package com.originskyseed.platform.user.mapper;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.user.model.ComplianceInspectionRules;

/**
 * 合规检查扣分规则表Mapper类（OSI_COMPLIANCE_INSPECTION_RULES）
 * 
 * @author Tangwanghui
 */
public interface ComplianceInspectionRulesMapper {

	/**
	 * 删除记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 * 
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(ComplianceInspectionRules record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(ComplianceInspectionRules record) throws Exception;

	/**
	 * 更新记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(ComplianceInspectionRules record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(ComplianceInspectionRules record) throws Exception;

	/**
	 * 查询记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public ComplianceInspectionRules selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询列表
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<ComplianceInspectionRules> selectList(ComplianceInspectionRules record) throws Exception;

	/**
	 * 分页查询列表
	 * 
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<ComplianceInspectionRules> selectListByPage(Map<String, Object> params) throws Exception;

	/**
	 * 置顶接口
	 *
	 * @param complianceInspectionRules
	 * @return
	 * @throws Exception
	 */
	public int updateIsTop(ComplianceInspectionRules complianceInspectionRules) throws Exception;

	/**
	 * 查询最大的优先级
	 * 
	 * @return
	 * @throws Exception
	 */
	public Integer selectPriority() throws Exception;

	/**
	 * 根据优先级查询
	 * 
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public ComplianceInspectionRules selectComplianceByPrioritySort(Map<String, Object> map) throws Exception;

}